home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / Include / FWMDash.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-08  |  1.5 KB  |  75 lines  |  [TEXT/MPS ]

  1. #ifndef FWMDASH_H
  2. #define FWMDASH_H
  3.  
  4. //========================================================================================
  5. //
  6. //    File:                FWMDash.h
  7. //    Release Version:    $ 1.0d11 $
  8. //
  9. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifdef FW_BUILD_MAC        // Macintosh-only
  14.  
  15. //========================================================================================
  16. //    Header files
  17. //========================================================================================
  18.  
  19. #ifndef _ODMATH_
  20. #include <ODMath.h>
  21. #endif
  22.  
  23. #ifndef FWGCONST_H
  24. #include "FWGConst.h"
  25. #endif
  26.  
  27. #if FW_LIB_EXPORT_PRAGMAS
  28. #pragma lib_export on
  29. #endif
  30.  
  31. //========================================================================================
  32. //    class FW_PBitmap
  33. //========================================================================================
  34.  
  35. class FW_CLASS_ATTR FW_CMacDashDraw
  36. {
  37. public:
  38.  
  39. // ----- Construction
  40.  
  41.     FW_CMacDashDraw(FW_EStyleDash dash);
  42.     ~FW_CMacDashDraw();
  43.  
  44. // ----- Operations
  45.  
  46.     void    LineTo(short x, short y);
  47.  
  48. // ----- Implementation
  49.  
  50. private:
  51.     short        fDashCount;
  52.     short*        fDashDistances;
  53.     FW_Boolean    fIsOpaque;
  54.     
  55.     RGBColor    fForeColor, fBackColor;
  56.     
  57.     short        fCurSegN;
  58.     short        fCurSegDraw;
  59.     
  60.     short        fAdjustH;
  61.     short        fAdjustV;
  62.  
  63.     void        InitAdjust(short dh, short dv);
  64.     void        DrawOneSegment(short h, short v);
  65. };
  66.  
  67. #if FW_LIB_EXPORT_PRAGMAS
  68. #pragma lib_export off
  69. #endif
  70.  
  71. #endif // FW_BUILD_MAC
  72.  
  73. #endif // FWMDASH_H
  74.  
  75.